<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>google-cloud-cpp</title>
    <meta name="description" content="C++ idiomatic client for Google Cloud services">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="https://cloud.google.com/images/gcp-favicon.ico">
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/github.min.css">
    <link rel="stylesheet" href="css/site.css">
    <script src="js/vendor/modernizr-2.6.2.min.js"></script>
    <link href='//fonts.googleapis.com/css?family=Droid+Sans+Mono|Roboto:300,400,700,700italic,400italic|Open+Sans:300' rel='stylesheet' type='text/css'>
</head>
<body ng-app="gcloud-cpp">
<header class="page-header" role="banner">
    <h1 class="logo"><img src="img/logo-full.svg" alt="Google Cloud Platform" /></h1>
    <nav class="main-nav">
        <div class="nav-current">C++</div>
        <ul class="menu">
            <li>
                <a href="//googleapis.github.io/google-cloud-dotnet/" title="google-cloud-dotnet">
                    <img src="img/icon-lang-dotnet.svg" alt="google-cloud-dotnet" class="menu-icon" />
                    .NET
                </a>
            </li>
            <li>
                <a href="#" title="google-cloud-cpp">
                    <img src="img/icon-lang-cpp.svg" alt="google-cloud-cpp" class="menu-icon" />
                    C++
                </a>
            </li>
            <li>
                <a href="//googleapis.github.io/google-cloud-go/" title="google-cloud-go">
                    <img src="img/icon-lang-go.svg" alt="google-cloud-go" class="menu-icon" />
                    Go
                </a>
            </li>
            <li>
                <a href="//googleapis.github.io/google-cloud-java/" title="google-cloud-java">
                    <img src="img/icon-lang-java-duke-white.svg" alt="google-cloud-java" class="menu-icon" width="24" height="24" />
                    Java
                </a>
            </li>
            <li>
                <a href="https://googleapis.github.io/google-cloud-node/" title="google-cloud-node">
                    <img src="img/icon-lang-nodejs.svg" alt="google-cloud-node" class="menu-icon" />
                    Node.js
                </a>
            </li>
            <li>
                <a href="https://googleapis.github.io/google-cloud-php/" title="google-cloud-php">
                    <img src="img/icon-lang-php.svg" alt="google-cloud-php" class="menu-icon" />
                    PHP
                </a>
            </li>
            <li>
                <a href="https://googleapis.github.io/google-cloud-python/" title="google-cloud-python">
                    <img src="img/icon-lang-python.svg" alt="google-cloud-python" class="menu-icon" />
                    Python
                </a>
            </li>
            <li>
                <a href="https://googleapis.github.io/google-cloud-ruby/" title="google-cloud-ruby">
                    <img src="img/icon-lang-ruby.svg" alt="google-cloud-ruby" class="menu-icon" />
                    Ruby
                </a>
            </li>
        </ul>
    </nav><!-- end of .main-nav -->
</header><!-- end of .page-header -->


<article class="main" role="main">
    <section class="hero-banner">
        <div class="container clearfix">
            <div class="col col-left">
                <h1>google-cloud</h1>
                <p>Google Cloud Client Library for C++ - an idiomatic, intuitive, and natural way for C++ developers to
                    integrate with Google Cloud Platform services, like Cloud Bigtable and Cloud Storage.</p>
            </div><!-- end of .col.col-left -->
        </div><!-- end of .container -->
    </section><!-- end of .hero-banner -->

    <section class="block featuring">
        <div class="container">
            <ul class="featuring-links">
                <li>
                    <a href="bigtable/index.html" title="google-cloud bigtable docs" class="btn btn-docs">
                        <img src="img/icon-lang-cpp-logo.svg" width="32px" height="32px" alt="C++ icon" class="menu-icon" />
                        Cloud Bigtable
                    </a>
                </li>
                <li>
                    <a href="storage/index.html" title="google-cloud storage docs" class="btn btn-docs">
                      <img src="img/icon-lang-cpp-logo.svg" width="32px" height="32px" alt="C++ icon" class="menu-icon" />
                      Cloud Storage
                    </a>
                </li>
                <li>
                    <a href="https://github.com/googleapis/google-cloud-cpp" title="google-cloud on Github" class="ext-link">
                        <img src="img/icon-link-github.svg" alt="Github icon" />
                        Github
                    </a>
                </li>
                <li>
                    <a href="https://github.com/googleapis/google-cloud-cpp/issues" title="google-cloud issues on Github" class="ext-link">
                        <img src="img/icon-link-github.svg" alt="Github icon" />
                        Issues
                    </a>
                </li>
                <li>
                    <a href="https://stackoverflow.com/questions/tagged/google-cloud-platform+cpp" title="google-cloud on StackOverflow" class="ext-link">
                        <img src="img/icon-link-stackoverflow.svg" alt="StackOverflow icon" />
                        StackOverflow
                    </a>
                </li>
            </ul>
        </div><!-- end of .container -->
    </section><!-- end of .featuring -->

    <section class="block about">
        <div class="container clearfix">
            <div class="quote-box">
                <h3 class="block-title">What is it?</h3>

                <p><code>google-cloud</code> is a client library for accessing Google
                    Cloud Platform services that significantly reduces the boilerplate
                    code you have to write. The library provides high-level API
                    abstractions so they're easier to understand. It embraces
                    idioms of C++, works well with the standard library, and
                    integrates better with your codebase.
                    All this means you spend more time creating code that matters
                    to you.</p>

                <p><code>google-cloud</code> is configured to access Google Cloud Platform
                    services and authorize (OAuth 2.0) automatically on your behalf.
                    Add the <code>google-cloud</code> dependency to your project and get a private key to be
                    up and ready to go. Better yet, if you are running on Compute Engine, the private key is
                    automatically detected.
            </div>

            <div class="quote-box--supplementary">
                <h4>Example: Retrieve Cloud Bigtable Rows</h4>

                <div hljs="" language="C++" class=""><pre>
<code class="hljs C++">#include &lt;bigtable/client/table.h&gt;

// Use Application Default Credentials for authentication.
auto client = bigtable::CreateDefaultDataClient(
    "my-project", "my-instance",
    bigtable::ClientOptions());
bigtable::Table table(client, "my-table");
for (auto& row : table.ReadRows(
        bigtable::RowRange::InfiniteRange(),
        bigtable::Filter::PassAllFilter())) {
    auto count = std::distance(
        row.cells().begin(), row.cells().end());
    std::cout << row.row_key() << " has " << count << " cells\n";
}
</code></pre></div>

            </div>
        </div><!-- end of .container -->
    </section><!-- end of .featuring -->

    <section class="block faq">
        <div class="container">
            <h3 class="block-title">FAQ</h3>
            <h4>What is the relationship between the <code>google-cloud</code> library and the <code>gcloud</code> command-line tool?</h4>
            <p>Both the <code>gcloud</code> command-line tool and <code>google-cloud</code> library are a part of the
                Google Cloud SDK: a collection of tools and libraries that enable you to easily create and manage
                resources on the Google Cloud Platform. The <code>gcloud</code> command-line tool can be used to
                manage both your development workflow and your Google Cloud Platform resources while the
                <code>google-cloud</code> library is the Google Cloud Client Library for C++.</p>

            <h4>What is the relationship between <code>google-cloud</code> and the Google APIs C++ Client?</h4>
            <p>The <a href="https://github.com/google/google-api-cpp-client">Google APIs C++ Client</a> is a client
                library for using the broad set of Google APIs. <code>google-cloud</code> is built specifically for the
                Google Cloud Platform and is the recommended way to integrate Google Cloud APIs into your C++
                applications. If your application requires both Google Cloud Platform and other Google APIs, the 2
                libraries may be used by your application.</p>
        </div><!-- end of .container -->
    </section><!-- end of .faq -->
</article><!-- end of .main -->

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/vendor/highlight.pack.js"></script>
<script src="js/main.js"></script>
</body>
</html>
